package com.yc.navy.goods.vo;

import com.yc.navy.goods.enums.ResultEnum;

public class backVO {
	private Integer code = 0; //如果有数据必定为0
	private Object msg;
	private String message;
	
	public backVO(ResultEnum enums,Object data) {
		this.code = enums.getCode();
		this.message = enums.getMessage();
		this.msg = data;
	}
	
	public backVO(ResultEnum enums) {
		this.code = enums.getCode();
		this.message = enums.getMessage();
	}

	public backVO() {
		super();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Object getMsg() {
		return msg;
	}

	public void setMsg(Object msg) {
		this.msg = msg;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "backVO [code=" + code + ", msg=" + msg + ", message=" + message + "]";
	}
}
